<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->hostInfo; ?>/css/order.css?v=<?php echo Yii::app()->params['version']['CSS'];?>"/>
<div class="cont">
	<?php 
		if($mainOrder['pay_status'] == 0){
			$step = 2;
		}else if($mainOrder['pay_status'] == 4){
			$step = 4;
		}else{
			$step = 3;
		}
	?>
	<!--订单支付步骤-->
	<?php $this->beginWidget('application.widget.tools.process', array('step'=>$step)); ?>
	<?php $this->endWidget(); ?>
	<?php if($mainOrder['pay_status'] == 0){?>
    <div class="order_waiting">
        <h3>订单操作中...</h3>
        <a href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl("pay/confirm", array("ordersn" => $ordersn)); ?>">下一步</a>
    </div>
	<?php }?>
    <ul class="order_list">
    	<li class="cur"><i></i>订单详情</li>
    	<li><i></i>微信服务</li>
    </ul>
    <div class="order_detail order_con" style="display:block;">
		<!--订单详情-->
    	<?php $this->beginWidget('application.widget.order.orderDetail', array('orderSn' => $ordersn)); ?>
		<?php $this->endWidget(); ?>
        <!--订单航班信息 + 特色项目-->
    	<?php $this->beginWidget('application.widget.order.orderFlight'); ?>
		<?php $this->endWidget(); ?>
	</div>
    <!--微信服务-->
	<?php $this->beginWidget('application.widget.order.wechat'); ?>
	<?php $this->endWidget(); ?>
</div>
<script type="text/javascript">
new tabChange({tab:$(".order_list li"),con:$(".order_con"),current:"cur",mouseEvent:"click"});
</script>